package com.strategy.demo01;

public class Client {
    public static void main(String[] args) {
        //选择并创建需要使用的策略对象
        MemberStrategy strategy = new AdvancedMemberStrategy();
        //创建环境
        PriceSystem system = new PriceSystem(strategy);
        //计算价格
        double quote = system.quote(300);
        System.out.println("高级会员折扣后图书价格:"+quote);
    }
}
